package com.wendy.common.core.exception.base;

import java.io.Serializable;

public class SystemException extends RuntimeException implements Serializable {

    private static final long serialVersionUID = 1L;
    private String msg;

    private Integer code;


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public SystemException() {
        super();
    }

    public SystemException(String message) {
        super(message);
        this.msg=message;
    }

    public SystemException(String message, Integer  code) {
        super(message);
        this.msg=message;
        this.code=code;
    }

    @Override
    public Throwable fillInStackTrace() {
        return this;
    }


}
